package com.atcc.test.serviceImpl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.atcc.test.mapper.UserMapper;
import com.atcc.test.pojo.User;
import com.atcc.test.service.UserService;

@Service
public class UserServiceImpl implements UserService {
   
	@Autowired
	private UserMapper userMapper;
	
	@Override
	public List<User> getAll() {
		return userMapper.getAll();
	}

	@Override
	public User getUserById(Long id) {
		return userMapper.getUserById(id);
	}

}
